package com.bookmngsys.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@Entity
public class ReservationHistory {
    @Id
    private Integer id;
    //预约的isbn
    private String isbn;
    //预约的bookId
    private Integer bookId;
    //预约用户id
    private Integer readerId;
    //预约日期
    private Long reserveDate;
    //预约是否被使用，使用会被标记为true，没有为null或false
    private Boolean isUsed;
    //预约是否被取消，取消标记为true，没有为null或false
    private Boolean isCancelled;
}
